<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<title>文件列表</title>
	<link rel="shortcut icon" href="{{url_for('static', filename='image/ss.bmp')}}" type="image/x-icon">
	<link href="{{ url_for('static', filename='static.css')}}" type="text/css" rel="stylesheet" >
	<link href="{{ url_for('static', filename='filelist.css')}}" type="text/css" rel="stylesheet" >
	<script type="text/javascript" src="{{url_for('static', filename='function.js')}}"></script>
</head>
<body>
	<div class="fanyi__nav__container">
            <ul class="fanyi__nav__list">
                {% if user == 1%}
                <li class="last"><a href="javascript:void(0)" id="loginblock" class="login-link" onclick="pre_login()" style="display: block">登录</a>

				</li>
                {% else %}
                <li class="last"><a href="javascript:void(0)" id="loginblock" class="login-link" onclick="pre_login()" style="display: none">登录</a>
                <div id="userbox" style="display:block" tet="{{user.user_id}}">
	            <span class="user-name" onclick="name_click()">{{user.user_name}}</span>
	            <div class="account-cover" id="account-cover" style="display:none;">
                <a class="my-docs" id="filelistid" href="/filepage/{{user.user_id}}">我的文档翻译</a>
                <a class="login-out" href="/loginout">退出</a>
            	</div></div>
				</li>
                {% endif %}
            </ul>
            <a href="/index" class="fanyi__nav__logo"></a>
	</div>
<div id="app">
<div>
<div class="_1geZK">
<div class="_2l05G">
<div class="_39Hac  ">
	<h2 class="_11Z1B">全部文件</h2>
<div>
	{% for (i,file) in files %}
	<a target="_self" rel="noopener noreferrer" id="block{{i+1}}" class="_1EMem YuyDb " style="display:inline-block;">
		<span class="_8-iAp">{{i+1}}</span>
		<h1 class="_3K30U">{% if file.file_done==1 %}(已翻译){% elif file.state==1 %}(翻译中){% endif %}{{file.file_name}}</h1>
		<div class="_2uXPi">时间：{{file.file_uptime}}<ins>|</ins>{{file.file_slen/1024|round}} KB</div>
		<div id = "file_{{file.file_id}}" style = "display:none;"></div>
		<div class="zPNv6">
			<div class="xj1O0">
				<img class="_2-jHE" src="{{url_for('static', filename='image/'+file.file_format+'.png' )}}" alt="{{file.file_format}}">
				<span>{{file.file_format}}</span>
			</div>
		</div>
		<div class="_3HJ3p">
			<div class="_1vFIe">
				<span class="t45av ">
					<p style="color:red;text-decoreation:underline;" onclick="delfile({{file.file_id}},{{i+1}})">删&nbsp;除</p>
				</span>
				<span class="_3LXn5" onclick="getsource('{{file.file_id}}','{{file.file_name}}')" style="color:blue;">下载源文件</span>
			</div>
			<div class="_3t4co">
				<span class="_2Ekh0" id="functiontranslate{{i+1}}" onclick="{% if file.file_done==1 %} getdstfile('{{file.file_id}}','{{file.file_name}}') {% elif file.file_state==0 %} translatefile('{{file.file_id}}',{{i+1}}){% else %}{% endif %}">{% if file.file_done==1 %}下载{% elif file.file_state==1 %}翻译中{% else %}翻译{% endif %}</span>
			</div>
		</div>
	</a>
	{% endfor %}
	</div>
</div>
</div>
</div>
</div>
</div>
<div class="fanyi__footer" style="display: block;">
      <a target="_blank" href="http://www.youdao.com/?keyfrom=fanyi-new.copyright">有道首页</a><span class="c_fnl">|</span><a target="_blank" href="http://dsp.youdao.com/?keyfrom=fanyi-new.copyright">有道智选</a><span class="c_fnl">|</span><a target="_blank" href="https://ke.youdao.com/?keyfrom=fanyi-new.copyright">有道精品课</a><span class="c_fnl">|</span><a target="_blank" href="http://www.youdao.com/about/index.html">关于有道</a><span class="c_fnl">|</span><a target="_blank" href="http://i.youdao.com">官方博客</a>
      <p class="c_fcopyright">© 2020 网易公司 <a href="http://www.163.com/">网易公司</a> <a href="http://www.youdao.com/terms/privacy.html">隐私政策</a> 京ICP证080268号 <a href="http://beian.miit.gov.cn">京ICP备10005211号</a> </p>
    </div>
</body>

</html>